django-react refused to apply style from mime type chunk.css because its MIME type (text-html) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

43

The reason behind why it shows mime type error is that, staticfiles_dirs doesn't include src folder, and if there is images inside src, it doesn't get include in staticfiles folder while collectstatic process, hence throws error.

so make sure to not use import images inside src or public, instead host them.

Comments

Submit
0 Comments